// index.js
import dayjs from 'dayjs'
// const myData = require('../../myData')
import myData from '../../myData'
Page({
  onLoad() {
    const dateStr = dayjs().format('YYYY年MM月DD日')
    console.log('当前日期: ', dateStr);
    const app = getApp()
    console.log('全局变量', app.myMsg);
    app.myMsg = '666666'
    console.log('全局变量', app.myMsg);
    console.log('公共变量', myData.msg);
  }
})
